<?php
return array(
    'DB_TYPE' => 'mysql', // 数据库类型
    'DB_HOST' => 'localhost', // 服务器地址
    'DB_NAME' => 'test', // 数据库名
    'DB_USER' => 'root', // 用户名
    'DB_PWD' => 'root', // 密码
    'DB_PORT' => '3306', // 端口
    'DB_PREFIX' => 'think_', // 数据库表前缀
    'DB_FIELDTYPE_CHECK' => false, // 是否进行字段类型检查
    'DB_FIELDS_CACHE' => true, // 启用字段缓存
    'DB_CHARSET' => 'utf8', // 数据库编码默认采用utf8

    'APP_DEBUG' => true,
    'SHOW_PAGE_TRACE' => true,

    'URL_CASE_INSENSITIVE' => false,
    //'ACTION_SUFFIX'=>'Action',

    'URL_PARAMS_BIND'       =>  true,
    'URL_ROUTER_ON' => true,
    'DEFAULT_FILTER'        => 'htmlspecialchars',
    'URL_HTML_SUFFIX'=>'htm|do',


    'URL_ROUTE_RULES' => array(
        'new/:id\d$' => 'Mysite/read',
        'new/:name$' => 'Mysite/read',
        'new/:year\d/:month\d$' => 'Mysite/archive',
    ),

    'TMPL_PARSE_STRING' => array(
        '__PUBLIC__' => __ROOT__ . '/Public',
        '__UPLOAD__' => __ROOT__ . '/Public/Uploads',
        '__ADMIN__' => __ROOT__ . '/Admin',
        '__WEBRESOURCE__' => 'dev'
    )
);
?>